package com.xxwy.ddu.cms.authonrize.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.xxwy.ddu.cms.authonrize.entity.BaseUser;
import org.apache.ibatis.annotations.Many;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxwy
 * @since 2018-08-14
 */
public interface UserMapper extends BaseMapper<BaseUser> {


    BaseUser selectByNameWithRole(String uName);


    List<BaseUser> selectUserWithRole(Page<BaseUser> page);

    BaseUser selectByNameWithPhone(String phone);
}
